//
//  FYProxy.m
//  MemoryManagerDemo
//
//  Created by FelixYin on 2020/4/11.
//  Copyright © 2020 FelixYin. All rights reserved.
//

#import "FYProxy.h"

@interface FYProxy ()

//里面使用弱指针
@property (nonatomic,weak) id target;

@end

@implementation FYProxy

+ (instancetype)proxyWithTarget:(id)obj{
    FYProxy *target = [[FYProxy alloc] init];
    target.target= obj;
    return target;
}


- (id)forwardingTargetForSelector:(SEL)aSelector{
    return self.target;
}

@end
